const http = require("http");

const server = http.createServer((req, res) => {
  console.log(req.url);
  console.log(req.method);
  console.log(req.headers);
  res.end("Hello World");
});

server.listen(8000, "0.0.0.0", () => {
  console.log("服务器启动成功");
});
